CPP = g++

RACE_PATH=$(HOME)/workspace/svn-race

-include $(RACE_PATH)/global.mk

INCS = -I$(RACE_PATH)/robot -I$(RACE_PATH)/sense -I$(RACE_PATH)/laser -I$(RACE_PATH)/motor -I$(RACE_PATH)/map -I$(RACE_PATH)/line -I$(RACE_PATH)/util -I$(RACE_PATH)/camera -I$(ARIA_INCLUDE) $(CSM_INCLUDE) $(CVBLOB_INC)
#LINK = -L$(RACE_PATH)/lib .lutil -lline -lsense -lmotor -llaser -lcamera -lmap -lrobot -lutil -L$(ARIA_LIB) -lAria -lpthread -ldl -lrt -lgsl -lgslcblas -lm -lboost_thread $(CSM_LIB) -L/usr/local/lib/static -lcvblob $(OPENCV_LIB)
LINK = -L$(ARIA_LIB) -L$(RACE_PATH)/lib -lrobot -lsense -lmap -lline -lmotor -llaser -lcamera $(OPENCV_LIB) $(CVBLOB_LIB) -lAria -lpthread -ldl -lrt -lgsl -lgslcblas -lm -lboost_thread $(CSM_LIB) -lutil

myexample: myexample.o MyAction.o matrix.o DoorDetector.o  MoveBehavior.o RotateBehavior.o HoughDoorDetector.o HoughSpectrum.cc
	$(CPP) $(CPPFLAGS) $(CXXFLAGS) -o $@ $^ $(INCS) $(LINK)

%.o: %.cc
	$(CPP) $(CPPFLAGS) $(CXXFLAGS) -c $< $(INCS)

clean:
	rm -f *.o *~ myexample

